package com.lazyfish.ioc;

import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestDI {
    @Test
    public void test() {
        ApplicationContext applicationContext  =  new ClassPathXmlApplicationContext("applicationContext.xml");
        FlyService flyService = (FlyService)applicationContext.getBean("flyService");
        flyService.fly();
    }
}
